package com.zib.bilibili.model;

import com.zib.bilibili.MyApp;
import com.zib.bilibili.api.ApiStore;
import com.zib.bilibili.api.UrlConstant;
import com.zib.bilibili.bean.LiveBean;
import com.zib.bilibili.utils.MD5utils;

import retrofit2.Callback;

/**
 * Created by Administrator on 2016/7/6.
 */
public class LiveModel implements ILiveModel{

    @Override
    public void getLiveData(Callback<LiveBean> callback) {
        ApiStore.getInstance()
                .getApiService()
                .getLiveData(MD5utils.getMD5(UrlConstant.LIVE_URL+MyApp.APP_SECRET))
                .enqueue(callback);
    }
}
